package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.AdvertisementShareMapper;
import com.ruoyi.system.domain.AdvertisementShare;
import com.ruoyi.system.service.IAdvertisementShareService;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-05-23
 */
@Service
public class AdvertisementShareServiceImpl implements IAdvertisementShareService 
{
    @Autowired
    private AdvertisementShareMapper advertisementShareMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param shareId 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public AdvertisementShare selectAdvertisementShareByShareId(Long shareId)
    {
        return advertisementShareMapper.selectAdvertisementShareByShareId(shareId);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param advertisementShare 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<AdvertisementShare> selectAdvertisementShareList(AdvertisementShare advertisementShare)
    {
        return advertisementShareMapper.selectAdvertisementShareList(advertisementShare);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param advertisementShare 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertAdvertisementShare(AdvertisementShare advertisementShare)
    {
        advertisementShare.setCreateTime(DateUtils.getNowDate());
        return advertisementShareMapper.insertAdvertisementShare(advertisementShare);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param advertisementShare 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateAdvertisementShare(AdvertisementShare advertisementShare)
    {
        return advertisementShareMapper.updateAdvertisementShare(advertisementShare);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param shareIds 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteAdvertisementShareByShareIds(Long[] shareIds)
    {
        return advertisementShareMapper.deleteAdvertisementShareByShareIds(shareIds);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param shareId 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteAdvertisementShareByShareId(Long shareId)
    {
        return advertisementShareMapper.deleteAdvertisementShareByShareId(shareId);
    }
}
